//
//  HomeEquipmentCell.m
//  DefendHealth
//
//  Created by UNOHACHA on 17/2/20.
//  Copyright © 2017年 iMacOne. All rights reserved.
//

#import "HomeEquipmentCell.h"

@implementation HomeEquipmentCell
{
    
   
    
    
}


-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    
    if (self) {
        
        UIView *baView = [[UIView alloc]initWithFrame:CGRectMake(0, 0, kScreenWidth, 56)];
        baView.backgroundColor = kWhiteColor;
        [self.contentView addSubview:baView];
        
        UILabel *titNameL = [ReduceCode creatLabelWithFrame:CGRectMake(20, 20, 100, 30) title:@"所有设备" titleColor:UIColorFromRGB(0x333333) font:17 textAlignment:NSTextAlignmentLeft];
        [baView addSubview:titNameL];
        
        UILabel *moreL = [ReduceCode creatLabelWithFrame:CGRectMake(kMaxX(baView.frame)-200, 20, 180, 30) title:@"更多设备" titleColor:UIColorFromRGB(0xe85f2b) font:12 textAlignment:NSTextAlignmentRight];
        [baView addSubview:moreL];
        
        
//        UIView * bgView = [[UIView alloc]initWithFrame:CGRectMake(0, 0, kScreenWidth, 82)];
//        
//        bgView.backgroundColor = kWhiteColor;
//        
//        [self.contentView addSubview:bgView];
//        
//        UIImageView * mainImg = [ReduceCode creatImageVeiwWithFrame:CGRectMake(10, 12, 62, 62) imageName:@"" isCorner:NO];
//        mainImg.backgroundColor = UIColorFromRGB(0xcccaca);
//        
//        [bgView addSubview:mainImg];
//
//        UILabel * titNameL = [ReduceCode creatLabelWithFrame:CGRectMake(kMaxX(mainImg.frame)+12, 12, kScreenWidth-kMaxX(mainImg.frame)-20, 17) title:@"亿健精灵跑步机1.0" titleColor:UIColorFromRGB(0x333333) font:17 textAlignment:NSTextAlignmentLeft];
//       [bgView addSubview:titNameL];
//        
//        UILabel * connectL = [ReduceCode creatLabelWithFrame:CGRectMake(kMaxX(mainImg.frame)+12, kMaxY(titNameL.frame)+9, kScreenWidth-kMaxX(mainImg.frame)-20, 12) title:@"已连接" titleColor:UIColorFromRGB(0x666666) font:12 textAlignment:NSTextAlignmentLeft];
//          [bgView addSubview:connectL];
//        
//        UILabel * planL = [ReduceCode creatLabelWithFrame:CGRectMake(kMaxX(mainImg.frame)+12, kMaxY(connectL.frame)+9, kScreenWidth-kMaxX(mainImg.frame)-20, 12) title:@"已设定计划" titleColor:UIColorFromRGB(0x666666) font:12 textAlignment:NSTextAlignmentLeft];
//         [bgView addSubview:planL];
//  
//        UIImageView * weather = [ReduceCode creatImageVeiwWithFrame:CGRectMake(kScreenWidth-10-7,0, 7, 11) imageName:@"point" isCorner:YES];
//        weather.centerY = bgView.centerY;
//         [bgView addSubview:weather];
        
        
        
    }
    
    return self;
}

@end
